/**
 *
 *
 */
package com.fw.timesheet.service;

import java.util.List;

import com.fw.timesheet.dao.ProjectDAO;
import com.fw.timesheet.model.Project;

/**
 * @author sigit <br>
 * @version 1.0 <br>
 *          Application : timesheet <br>
 *          Copyright (c) fastwire-group 2012 <br>
 * <br>
 */
public class ProjectService extends BaseService {

	private ProjectDAO projectDAO;

	public ProjectDAO getProjectDAO() {
		return projectDAO;
	}

	public void setProjectDAO(ProjectDAO projectDAO) {
		this.projectDAO = projectDAO;
		setDaoObject(projectDAO);
	}


	public void delete(Project persistentInstance) {
		getProjectDAO().delete(persistentInstance);
	}

	public Project findById(Integer id) {
		return getProjectDAO().findById(id);
	}

	public List<Project> findAll() {
		return getProjectDAO().findAll();
	}
}
